CC = g++
CFLAGS = -W -Wall -g
 
SRC = $(wildcard *.cpp)
OBJS = $(SRC:.cpp=.o)
PROG = matrix
 
all : $(PROG) 
 
matrix : $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $^
%.o : %.cpp
	$(CC) $(CFLAGS) -o $@ -c $<
clean :
	@rm *.o
proper : 
	@rm $(PROG)

